import request from '@/utils/request';

// 菜单分页查询
export const menusList = params => request({
    url: '/menus/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 菜单管理添加
export const menusAdd = params => request({
    url: '/menus/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 菜单管理添加
export const menusUpdate = params => request({
    url: '/menus/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 菜单管理详情
export const menusDetail = params => request({
    url: '/menus/detail',
    method: 'GET',
    params
});
// 菜单管理删除
export const menusDel = params => request({
    url: '/menus/del',
    method: 'GET',
    params
});
// 菜单树
export const getMenuTree = params => request({
    url: '/menus/getMenuTree',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
